<%--
  Created by IntelliJ IDEA.
  User: chao
  Date: 2020/2/21
  Time: 15:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%-- jstl核心标签库 --%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
</head>
<body>
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>用户列表</legend>
    </fieldset>

    <div class="layui-form">
        <table class="layui-table">
            <colgroup>
                <col width="150">
                <col width="150">
                <col width="200">
                <col>
            </colgroup>
            <thead>
                <tr>
                    <th>用户名</th>
                    <th>昵称</th>
                    <th>创建时间</th>
                    <th>最后修改时间</th>
                </tr>
            </thead>
            <tbody>

                <%--
                    items="${users}" 被循环遍历的对象
                    var="user" 每一次循环使用的变量名
                    varStatus="status" 循环状态
                --%>
                <c:forEach items="${users}" var="user" varStatus="status">

                    <tr>
                        <td>${user.username}</td>
                        <td>${user.name}</td>
                        <td>${user.insertTime}</td>
                        <td>${user.lastModifiedTime}</td>
                    </tr>
                </c:forEach>
            
            </tbody>
        </table>
    </div>

    <script src="/layui/layui.js"></script>
</body>
</html>
